package com.yunian.common.service;

import com.yunian.common.execption.AdExecption;
import com.yunian.common.execption.PlanExecption;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class TestService {

    public Map test(Integer a) throws AdExecption, PlanExecption {

        if(a==1){
            throw new AdExecption("系统出错");
        }if(a==2){
            throw new PlanExecption("技术有瑕疵");
        }

        return null;
    }


}
